package org.mozhu.mysql.learning.hitcounter;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hit/")
public class HitCounterController {

    @RequestMapping("/echo")
    @ResponseBody
    public String echo() {
        return "hello world" + System.currentTimeMillis();
    }

    @RequestMapping("/increase")
    @ResponseBody
    public String increase() {
        return "hello world" + System.currentTimeMillis();
    }


}
